package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
//@RequestMapping("/pages")
public class AjaxController {

    @RequestMapping("/ajax1")
    public String ajaxController(@RequestBody String message) {
        System.out.println(message);
        return "ajax.jsp";
    }
}
